<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>地点详情</title>
    <link rel="icon" href="../static/img/logo2.png" type="image/png">
    <link rel="stylesheet" href="../static/css/ku/bootstrap.css">
    <link rel="stylesheet" href="../static/css/daohang.css">
    <script src="../static/js/ku/jquery.min.js"></script>
    <script src="../static/js/ku/bootstrap.js"></script>
    <link rel="stylesheet" href="../static/css/placedetails.css">
    <script>
        $(document).ready(function () {
            $('#ul1 li').click(function () {
                data1 = $(this).text();
                city1 ={{ list.city_id }};
                html = $.ajax({
                    url: "/region/",
                    type: 'POST',
                    data: {'data': data1, 'city': city1},
                    success: function (html) {
                        $("#div22").html(html);
                    }
                });
            })

        })
    </script>
</head>

<body>
<nav class="navbar navbar-expand-md bg-dark navbar-dark">
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#cla1">
        <span class="navbar-toggler-icon"></span>
    </button>
    <img src="../static/img/logo1.png" alt="">
    <div class="collapse navbar-collapse" id="cla1">
        <ul class="navbar-nav" style="margin: 0 10px 0 auto">
            <li class="nav-item">
                <a class="nav-link" href="/homepage/">首页</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="/search/">目的地</a>
            </li>
            <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
                    旅游攻略
                </a>
                <div class="dropdown-menu" style="text-align: center">
                    <a class="dropdown-item" href="/travels/">游记</a>
                    <a class="dropdown-item" href="/list/">榜单</a>
                    <a class="dropdown-item" href="/recommend/">景点推荐</a>
                </div>
            </li>
            <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
                    社区
                </a>
                <div class="dropdown-menu" style="text-align: center">
                    <a class="dropdown-item" href="/qa/">问答</a>
                    <a class="dropdown-item" href="/companions/">结伴</a>
                </div>
            </li>
            {% if request.session.is_login %}     
                <li class="nav-item"><a href="/house/" class="nav-link">{{ request.session.user_name }}</a></li>
                <li class="nav-item"><a href="/logout/" class="nav-link">注销账号</a></li>
            {% else %}
                <li class="nav-item"><a href="/signin/" class="nav-link">登录/注册</a></li>
            {% endif %}
        </ul>
    </div>
</nav>
<div class="container">
    <div class="row clearfix" style="line-height: 50px">
        <div class="col-md-12 column">
            <h1 style="margin-top: 20px">{{ list.city_name }}<a href="/soutu/?city_id={{ list.city_id }}"><span
                    style="font-size: 20px">({{ list.count_img }}张图片)</span></a>
            </h1>
            <div class="tabbable" id="tabs-240566">
                <ul class="nav nav-tabs" id="ul1">
                    <li class="active" onclick="click1(1)">
                        <img src="../static/img/Icon/gaishu.png" alt="" width="40px" height="40px"><a>概述</a>
                    </li>
                    <li onclick="click1(2)">
                        <img src="../static/img/Icon/jingdian.png" alt="" width="40px" height="40px"><a>热门景点</a>
                    </li>
                    <li onclick="click1(3)">
                        <img src="../static/img/Icon/youji.png" alt="" width="40px" height="40px"><a>热门游记</a>
                    </li>
                    <li onclick="click1(4)">
                        <img src="../static/img/Icon/wenda.png" alt="" width="40px" height="40px"><a>问答</a>
                    </li>
                </ul>
                <script>
                    function click1(a) {
                        ul = document.getElementById('ul1');
                        for (i = 0; i < 5; i++) {
                            ul.getElementsByTagName('li')[i].classname="click2"
                        }
                        ul.getElementsByTagName('li')[a].classname="click1"

                    }
                </script>
            </div>
        </div>
    </div>
    <div class="row clearfix" style="background: #f9f9f9;" id="div22">
        <div class="col-md-9 column" id="div222">
            {{ list.city_describe }}
        </div>
    </div>
</div>
<div style="margin-bottom: 20px">
    <a class="to-top" style="z-index: 999"><img src="../static/img/Icon/huidao.png" alt="" width="60px"></a>
    <script>!function (o) {
        "use strict";
        o.fn.toTop = function (t) {
            var i = this, e = o(window), s = o("html, body"),
                n = o.extend({autohide: !0, offset: 420, speed: 500, position: !0, right: 15, bottom: 30}, t);
            i.css({cursor: "pointer"}), n.autohide && i.css("display", "none"), n.position && i.css({
                position: "fixed",
                right: n.right,
                bottom: n.bottom
            }), i.click(function () {
                s.animate({scrollTop: 0}, n.speed)
            }), e.scroll(function () {
                var o = e.scrollTop();
                n.autohide && (o > n.offset ? i.fadeIn(n.speed) : i.fadeOut(n.speed))
            })
        }
    }(jQuery);
    $(function () {
        $('.to-top').toTop();
    });
    </script>
</div>
<div class="row clearfix" style="background:rgba(52,58,64,1)">
    <div class="col-md-2 column">
    </div>
    <div class="col-md-8 column">
        <div id="fool" style="width: 100%;text-align: center;height: 100px;color: #e2e3e5;">
            <p style="margin-top: 20px">© 2018 meetjinn.com 京ICP备0000000号
                <img src="http://images.mafengwo.net/images/footer/police_record.png"
                     width="12" style="margin:0 2px 4px 0;">公网安备000000000号<span
                        class="m_l_10">违法和不良信息举报电话: ---------- 举报邮箱 ----------</span></p>
            <p>网络出版服务许可证：----------<span class="m_l_10">增值电信业务经营许可证：京00000000</span> 营业执照帮助中心<span
                    class="m_l_10">觅景客服:</span><span
                    class="highlight">4006-000-000</span>
            </p>
        </div>
    </div>
    <div class="col-md-2 column">
    </div>
</div>
</body>
</html>